package com.qs.education.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.beans.EducationClassBean;
import com.qs.education.service.IClassAPIService;

/**
 * @class ClassController
 * @author Leon
 * @description
 * @date Nov 8, 2018
 */

@RestController
@RequestMapping("/class")
public class ClassController {

	@Autowired
	private IClassAPIService classApiService;

	@RequestMapping("/getAllClass")
	public ResponseListBean<EducationClassBean> getAllClass() {
		ResponseListBean<EducationClassBean> listClass = classApiService.getAllClass();
		return listClass;
	}
}
